using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;


public class FishItemUI : MonoBehaviour
{
    // [SerializeField] private Image iconImage;
    [SerializeField] private TextMeshProUGUI nameText;
    [SerializeField] private TextMeshProUGUI countText;

    public void Initialize(string name, string count, float totalValue)
    {
        nameText.text = $"{name}*{count}";
        //TODO 每捉到一次鱼，保存一次
        countText.text = $" {totalValue}";
    }

    // public void SetIcon(Sprite icon)
    // {
    //     iconImage.sprite = icon;
    //     iconImage.preserveAspect = true;
    // }
}

